<!doctype html>
<html>
<head>
    <title>订单返佣记录</title>
    <?php $this->load->module('admin/index/page_header');?>
    <link href="<?php echo URLPRE;?>static/admin/css/font_icon.css" rel="stylesheet" />
</head>
<body>

<div class="wrap J_check_wrap">
    <div class="nav">
        <ul>
            <li class="current"><a href="javascript:void(0);">返佣记录</a></li>
            <li><a href="javascript:void(0);" onclick="back_profit()">更新</a></li>
        </ul>
    </div>
    <form method="post" action="">
        <div class="table_list" id="content">
            <table width="100%" data-uri="<?php echo site_url('admin/adminuser/ajax_cash_commision');?>">
                <thead>
                <tr>
                    <td width="100" align="left">账户</td>
                    <td width="100" align="center">金额</td>
                    <td width="150" align="left">申请时间</td>
                    <td width="*" align="left">订单号</td>
                </tr>
                </thead>
                <?php if($list):?>
                    <tbody>
                    <?php foreach($list as $val):?>
                        <tr>
                            <td><?php echo $val['name'];?></td>
                            <td><?php echo $val['money'];?></td>
                            <td><?php echo $val['add_time'];?></td>
                            <td><?php echo $val['remark'];?></td>
                        </tr>
                    <?php endforeach;?>
                    </tbody>
                <?php endif;?>
            </table>
        </div>
    </form>
    <div class="page_nav">
        <?php echo $this->mypageclass->show(1); ?>
    </div>
</div>
</body>
<script type="text/javascript">
    function back_profit(){
        $.ajax({
            type: "POST",
            url : "<?php echo site_url('order/order/back_profit')?>",
//            data: data,
            success:function(result){
               var res=eval('('+result+')');
                alert(res.msg);
                location.reload();
                return false;
            }
        });
    }
</script>
</html>